package com.ossean.match.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.ossean.match.model.RelativeMemo;

public interface RelativeMemoDao {
	
	//批量获取帖子对象
	@Select("select id,title,tags from relative_memos where id>#{startId} AND id<=#{endId}")
	public List<RelativeMemo> getMemoInfo(@Param("startId") int startId, @Param("endId") int endId);
	
	//获得最大帖子id
	@Select("select MAX(id) from relative_memos")
	public Integer getLastMemoId();
	
}
